<?php

namespace App\Http\Controllers;

use App\Models\Config;
use App\Models\Honorary;

class AboutController extends Controller
{
    public function about()
    {
        $about = Config::find(1)->about;
        return view('about.guanyu', ['about' => $about]);
    }

    public function gaikuang()
    {
        $profile = Config::find(1)->profile;
        return view('about.gaikuang', ['profile' => $profile]);
    }

    public function zizhirongyu()
    {
        $honoraries = Honorary::all();
        return view('about.zizhirongyu', ['honoraries' => $honoraries]);
    }
}
